package com.sumainfor.pc.gmio.controller.epc;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.impl.epc.TcgmioTenantBillServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 查询维修工单未支付和已支付
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-04-24 11:35
 **/
@Controller
@RequestMapping("/provider/key/epc")
public class TcgmioTenantBillController {

    @Autowired
    TcgmioTenantBillServiceImpl tcgmioTenantBillService;

    /**
    * <p>
    * 根据维修账单编号查询未支付维修账单
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getTcmgioBillOne")
    public JsonResult getTcmgioBillOne(@RequestBody Map<String,Object> params){
        System.out.println("市场部接受的参数params"+params);
        System.out.println("市场部返回的结果"+tcgmioTenantBillService.getTcmgioBillOne(params));
        return tcgmioTenantBillService.getTcmgioBillOne(params);
    }

    /**
    * <p>
    * 查询支付完成的维修订单
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getTcmgioBillTwo")
    public JsonResult getTcmgioBillTwo(@RequestBody Map<String,Object> params){
        return tcgmioTenantBillService.getTcmgioBillTwo(params);
    }



}
